﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IDefenseCopyPrxHelper extends RMIProxyObject implements IDefenseCopyPrx
    {
        public static const NAME:String = "Message.Game.IDefenseCopy";

        public function IDefenseCopyPrxHelper()
        {
            name = "IDefenseCopy";
            return;
        }// end function

        public function buy_async(param1:AMI_IDefenseCopy_buy, param2:int, param3:int) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("buy");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeInt(param2);
            _loc_6.writeInt(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function compose_async(param1:AMI_IDefenseCopy_compose, param2:String) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("compose");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeString(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function discard_async(param1:AMI_IDefenseCopy_discard, param2:String) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("discard");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeString(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function dress_async(param1:AMI_IDefenseCopy_dress, param2:String, param3:String) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("dress");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeString(param2);
            _loc_6.writeString(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function exchangeReward_async(param1:AMI_IDefenseCopy_exchangeReward, param2:Boolean, param3:int) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("exchangeReward");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeBool(param2);
            _loc_6.writeInt(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function getDefenseReward_async(param1:AMI_IDefenseCopy_getDefenseReward, param2:int, param3:int) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("getDefenseReward");
            var _loc_6:* = new SerializeStream();
            _loc_6.writeInt(param2);
            _loc_6.writeInt(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function getDefenseRewardInfo_async(param1:AMI_IDefenseCopy_getDefenseRewardInfo, param2:int) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("getDefenseRewardInfo");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeInt(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function sell_async(param1:AMI_IDefenseCopy_sell, param2:String) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("sell");
            var _loc_5:* = new SerializeStream();
            _loc_5.writeString(param2);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function tidy_async(param1:AMI_IDefenseCopy_tidy, param2:EPlayerItemPosType) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("tidy");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function use_async(param1:AMI_IDefenseCopy_use, param2:String, param3:int, param4:Array) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("use");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeString(param2);
            _loc_7.writeInt(param3);
            SeqStringHelper.write(_loc_7, param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

    }
}
